package com.ytclub.subject.domain.convert;

import com.ytclub.subject.domain.entity.SubjectInfoBO;
import com.ytclub.subject.domain.entity.SubjectOptionBO;
import com.ytclub.subject.infra.basic.entity.SubjectInfo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 题目BO转换拦截器
 *
 * @author: HuangQi
 * @date: Created in 21:23 2023/12/14
 * @description: 拦截器
 */
@Mapper
public interface SubjectInfoConverter {
    SubjectInfoConverter INSTANCE = Mappers.getMapper(SubjectInfoConverter.class);

    SubjectInfo convertBoToInfo(SubjectInfoBO subjectInfoBO);

    SubjectInfoBO convertOptionToBo(SubjectOptionBO subjectOptionBO);

    SubjectInfoBO convertOptionAndInfoToBo(SubjectOptionBO subjectOptionBO,SubjectInfo subjectInfo);

    List<SubjectInfo> convertBoToInfo(List<SubjectInfoBO> subjectInfoBOList);

    List<SubjectInfoBO> convertInfoToBo(List<SubjectInfo> subjectInfoList);

}
